home *** CD-ROM | disk | FTP | other *** search
/ Network Supervisor's Toolkit / Network Supervisor's Toolkit.iso / tools / udtdem / sdk / include / udtdos.h next >
C/C++ Source or Header  |  1996-07-10  |  2KB  |  60 lines

  1. /*
  2.    UNIVERSAL DATA TRANSPORTER CLIENT SDK
  3.  */
  4.  
  5.  
  6. /* Valeurs de retour des fonctions de l'API
  7.  */
  8. #define UDT_OK                           0
  9. #define UDT_SERVERNOTPRESENT             1
  10. #define UDT_CONNECTIONFAILED             2
  11. #define UDT_BADCLIENTHANDLE              3
  12. #define UDT_IPXERROR                     4
  13. #define UDT_IPXSOCKETNOTOPEN             5
  14. #define UDT_OUTOFMEMORY                  6
  15. #define UDT_NORESPONSEFROMSERVER         7
  16. #define UDT_IPXNOTINSTALLED              8
  17. #define UDT_INVALIDMEMORY                9
  18. #define UDT_CONNECTIONREJECTED           10
  19.  
  20.  
  21. /* Structures utilisees dans l'application
  22.  */
  23. typedef struct tagUDTSERVER_INFO { char szServerName [ 48 ];
  24.                                    unsigned char uchIPXAddress [ 12 ];
  25.                                  } UDTSERVER_INFO;
  26. typedef UDTSERVER_INFO FAR * LPUDTSERVER_INFO;
  27.  
  28.  
  29. /* redefinitions de types proprietaires:
  30.  */
  31. typedef unsigned int HSESSION;
  32. typedef HSESSION FAR * LPHSESSION;
  33. typedef void huge * HPVOID;
  34.  
  35. #ifdef __cplusplus
  36. extern "C"
  37. {
  38. #endif
  39.  
  40. /* Prototypes des fonctions:
  41.  */
  42. int CALLBACK UdtSendBuffer ( HSESSION, HPVOID FAR *, LPLONG );
  43. void CALLBACK UdtGetVersion ( LPINT, LPINT, LPINT );
  44. BOOL CALLBACK UdtGetStationUserName ( LPSTR, int );
  45. int CALLBACK UdtCloseSession ( HSESSION );
  46. int CALLBACK UdtGetServers ( LPUDTSERVER_INFO FAR * );
  47. int CALLBACK UdtOpenSession ( LPHSESSION, LPUDTSERVER_INFO );
  48. HPVOID CALLBACK UdtAlloc ( LONG );
  49. BOOL CALLBACK UdtFree ( HPVOID );
  50. HPVOID CALLBACK UdtReAlloc ( HPVOID, LONG );
  51. void CALLBACK UdtCopyMemory ( HPVOID, HPVOID, LONG );
  52.  
  53. #ifdef __cplusplus
  54. }
  55. #endif
  56.  
  57.  
  58.  
  59.  
  60.